package com.device.operating.service;

import java.util.List;
import java.util.Map;

import com.device.operating.entity.Department;
import com.device.operating.entity.User;

public interface DepartmentService {

	public void adddepartment(Department dp);
	
	public List<Department> queryall();
	
	public List<Department> querybyparentId(String parentId);
	
	public List<Department> quertbyname(String dpname);
	
	public Department queryone(String dpId);
	
	public void deletedepartment(String dpId);
	
	public List<Department> querybynameandparentId(String dpname,String parentId);
	/**
	 * 查找当前部门的隶属部门
	 */
	public Department querydpls(String departmentId);
	/**
	 * 查找当前部门所有的子部门
	 * @param departmentId
	 * @return
	 */
	public List<Department> querydprela(String departmentId);
	
	public Map removedepartment(String departmentId);
	
	public Map changedpname(Department dp);
	
}
